package com.youle.weixin;

import org.junit.Test;

import com.youle.base.InterfaceBaseTest;
import com.youle.base.URLCOMMON;


public class WxpayQrcodeTest extends InterfaceBaseTest{
	
	/**
	 * <p>获取支付二维码</p>
	 */
	@Test
	public void qrcode(){
		beforeTest();
		paramMap.put("method", "jiuwu.steelyard.wxpayqrcode.get");
		paramMap.put("smac", "00:E0:61:4C:29:8C");
	}
	
	/**
	 * <p>运维人员解锁微信支付</p>
	 */
	@Test
	public void testPayStatus(){
		paramMap.put("method", "jiuwu.steelyard.wxpaystatus.test");
		paramMap.put("url", "weixin://wxpay/bizpayurl?pr=yBLZC0a");
	}
	
	/**
	 * <p>获取支付状态</p>
	 */
	@Test
	public void status(){
		paramMap.put("method", "jiuwu.steelyard.wxpaystatus.get");
		paramMap.put("orderNo", "60201707181434386838925");
	}
	
	/**
	 * <p>上传数据</p>
	 */
	@Test
	public void upload() {
		paramMap.put("method", "jiuwu.steelyard.data.upload");
		paramMap.put("bloodKBI", "正常");
		paramMap.put("bloodKBIType", "0");
		paramMap.put("bmi", "19.6");
		paramMap.put("bmiKBI", "正常");
		paramMap.put("bmiKBIType", "0");
		paramMap.put("bodyFat", "19.0");
		paramMap.put("bodyFatKBI", "标准");
		paramMap.put("bodyFatKBIType", "1");
		paramMap.put("bone", "6.3");
		paramMap.put("boneKBI", "正常");
		paramMap.put("boneKBIType", "0");
		paramMap.put("calorie", "1344.0");
		paramMap.put("chol", "3.04");
		paramMap.put("clientID", "02ggRFINWbdZ41oTWJNp1n");
		paramMap.put("format", "json");
		paramMap.put("hdl", "0.99");
		paramMap.put("height", "171.0");
		paramMap.put("ldl", "0.55");
		paramMap.put("muscle", "32.4");
		paramMap.put("muscleKBI", "标准");
		paramMap.put("muscleKBIType", "1");
		paramMap.put("openId", "app_1_c5aa4e823801ebd48d4c05e31a32909d");
		paramMap.put("smac", "00:e0:61:4c:29:8c");
		paramMap.put("tchol", "3.20");
		paramMap.put("trig", "0.77");
		paramMap.put("water", "56.1");
		paramMap.put("waterKBI", "标准");
		paramMap.put("waterKBIType", "1");
		paramMap.put("weight", "57.2");
		paramMap.put("weightKBI", "正常");
		paramMap.put("weightKBIType", "0");
	}

	@Override
	public String getUrl() {
		return URLCOMMON.ONLINETEST_URL;
	}

	
	
}